package com.ruoyi.web.controller.sso.zhgx.oauth2.model;


/**
 * 门户token对象
 *
 * @Author: lvjix
 * @Copyright: 亿云信息
 * @Date: 2025-03-13 10:38:10:38
 */
public class OupAuth2TokenDto {

    /**
     * 访问令牌
     */
    private String accessToken;

    /**
     * 令牌类型
     */
    private String tokenType;

    /**
     * 刷新令牌
     */
    private String refreshToken;

    /**
     * 令牌过期时间
     */
    private int expiresIn;

    /**
     * 权限范围
     */
    private String scope;

    /**
     * 是否有效
     */
    private boolean active;

    /**
     * 用户信息
     */
    private OupAuth2TokenUserInfo userInfo;

    /**
     * 智慧工信授权码
     */
    private String code;

    /**
     * 统一社会信用代码
     */
    private String corCode;

    /**
     * 企业名称
     */
    private String enterpriseName;

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public String getTokenType() {
        return tokenType;
    }

    public void setTokenType(String tokenType) {
        this.tokenType = tokenType;
    }

    public String getRefreshToken() {
        return refreshToken;
    }

    public void setRefreshToken(String refreshToken) {
        this.refreshToken = refreshToken;
    }

    public int getExpiresIn() {
        return expiresIn;
    }

    public void setExpiresIn(int expiresIn) {
        this.expiresIn = expiresIn;
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    public boolean isActive() {
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }

    public OupAuth2TokenUserInfo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(OupAuth2TokenUserInfo userInfo) {
        this.userInfo = userInfo;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCorCode() {
        return corCode;
    }

    public void setCorCode(String corCode) {
        this.corCode = corCode;
    }

    public String getEnterpriseName() {
        return enterpriseName;
    }

    public void setEnterpriseName(String enterpriseName) {
        this.enterpriseName = enterpriseName;
    }
}
